import {request} from 'umi'

export const pageList = (page:number,name:string,path:string,status:string) => {
    if(name || path || status){
        return request(`/page?page=${page}&pageSize=12&name=${name}&path=${path}&status=${status}`)
    }else{
       return request(`/page?page=${page}&pageSize=12`)
    }

}